package in.championswimmer.sfg.sample;

import in.championswimmer.sfg.lib.util.LogUtil;
import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
import org.junit.Assert;
import org.junit.Test;

import java.util.logging.Logger;

import static org.junit.Assert.assertEquals;

public class ExampleOhosTest {
    @Test
    public void testBundleName() {
        final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName();
        assertEquals("in.championswimmer.sfg.sample", actualBundleName);
    }

    @Test
    public void testLogValid() {
        Logger logger = LogUtil.createLogger("tag");
        Assert.assertNotNull(logger);
    }
}